<?php $usuario = $usuario[0];?>    
    <div id="esquerda">
        <div class="avatar">
            <?php if($usuario->avatar){?>
                <span><?php echo $usuario->username; ?></span>
                <p class="cidade_estado"><?php echo $cidade->nome . " - " . $estado->nome; ?></p>
                <?php echo img(array("src" => "upload/thumbs/" . $usuario->avatar,"class" => "img_avatar", "alt" => $usuario->username)); ?>
                <div class="redes_sociais">
                    <?php 
                    echo anchor($usuario->facebook, img(array("src" => "img/icon/facebook.png", "alt" => "Facebook de " . $usuario->username, "title" => "Facebook de " . $usuario->username, "width" => '16', "height" => '16')), array('target' => '_blank'));
                    
                    echo anchor($usuario->twitter, img(array("src" => "img/icon/twitter.png", "alt" => "Twitter de " . $usuario->username, "title" => "Twitter de " . $usuario->username, "width" => '16', "height" => '16')), array('target' => '_blank'));        
                    ?>
                </div>
            <?php }else{?>
                <span><?php echo $usuario->username; ?></span>
                <?php echo img(array("src" => "img/default_avatar.gif", "class" => "img_avatar", "alt" => $usuario->username)); ?>
            <?php } ?> 
                
                <?php if($usuario->idUsuario !== $this->session->userdata('idUsuario')){ ?> 
                    <p id="seguir" style="float: left;width: 90px;">
                        <?php include_once("btn_seguir_view.php") ?>
                    </p>
                    <p style="float: right;"><?php echo anchor("usuario/message/" . $usuario->idUsuario, img("img/icon/message.png")); ?> </p>
                <?php } ?> 
                
                <div class="clear"></div>
                <h5>Descrição</h5>
                <p><?php echo $usuario->bio; ?></p>
                
                <h5>Interesses</h5>
                <p>
                  marketing, cerveja, bares, festas, reggae, publicidade, vídeos,
                  cinema, teatro, artes plásticas, amigos.

                </p>
                <div class="clear"></div>
                <hr/>
                <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> 
                    Acompanha <?php echo $seguidos['count']; ?> </p>
                <ul>
                    <?php foreach($seguidos['info'] as $row): $row = $row[0];?>
                        <li><?php echo img(array("src" => "upload/thumbs/" . $row->avatar,"title" => $row->username, "width" => "20", "height" => "20")); ?></li>
                    <?php endforeach; ?>
                </ul>
                <br/>
                <hr/>
                <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> <?php echo $seguidores['count']; ?> 
                    o acompanham</p>
                <ul>
                    <?php foreach($seguidores['info'] as $row): $row = $row[0];?>
                        <li><?php echo img(array("src" => "upload/thumbs/" . $row->avatar,"title" => $row->username, "width" => "20", "height" => "20")); ?></li>
                    <?php endforeach; ?>
                </ul>
                
                <br/>
    </div>
        
    </div>
    
    <div id="conteudo">        
        <div class="bar">
            <ul id="menu_load" class="arrowunderline">
                <?php        
                echo "<li class='selected'>" . anchor('usuario/timeline_visiter/' . $usuario->idUsuario , img(array('src' => 'img/icon-bar/feed.png',
                                                            'alt' => 'Novidades',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Novidades'))) . "</li>"; 
                
                echo "<li>" . anchor('usuario/tips_visiter/' . $usuario->idUsuario, img(array('src' => 'img/icon-bar/tip.png',
                                                            'alt' => 'Dicas',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Dicas'))) . "</li>"; 
                
                echo "<li>" . anchor('usuario/tips_visiter/' . $usuario->idUsuario, img(array('src' => 'img/icon-bar/question.png',
                                                            'alt' => 'Perguntas',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Perguntas'))) . "</li>"; 
                
                echo "<li>" . anchor('usuario/cool_visiter/' . $usuario->idUsuario, img(array('src' => 'img/icon-bar/cool.png',
                                                            'alt' => 'Legal',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Legal')), array("title" => "legal")) . "</li>"; 
                
                echo "<li>" . anchor('usuario/go_visiter/' . $usuario->idUsuario, img(array('src' => 'img/icon-bar/igo.png',
                                                            'alt' => 'Vou',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Vou'))) . "</li>";
                ?>
            </ul>
        </div>
        <div class="clear"></div>
        <div class="load"><?php echo img(array('src' => 'img/LoadingImg.gif', 'alt' => 'Loading...', 'title' => 'Loading...')); ?></div>
        <div class="timeline">            
           <?php include_once("Timeline_view.php"); ?>
        </div>
    <div class="clear"></div>
</div>
<div id="direita">
    <?php if($SESSION === TRUE){ ?>
        <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?>Pessoas que combinam</p>
            <ul>
                <?php for($i=0; $i < 10; $i++): ?>
                    <li><?php echo img(array("src" => "upload/thumbs/" . $seguidos['info'][0][0]->avatar,"title" => $seguidos['info'][0][0]->username, "width" => "20", "height" => "20")); ?></li>
                <?php endfor; ?>
            </ul>

            <div class="clear" ></div>
            <hr/>

            <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?>Termos favoritos</p>

             <div id="tagcloud" class="tagcloud">
                      Image converter. 
                      Image converter. 
                      Image resizer. 
                      Ico to png. 
                      Png to jpg. 
                      Jpg to png. 
                      Jpg to png. 
                      Bmp to jpg. 
                      Jpg to bmp. 
                      Jpg to gif. 
                      Gif to jpg. 
                      Png to gif. 
                      Gif to png. 
                      Online. 
                      Online. 
                      Free. 
                      Free. 
             </div>

            <hr/>
            <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?>Convide Seus Amigos</p>
            <input type="text" name="convite"/>
            <p>Compartilhe experiências e hints com eles também! Insira quantos endereços de e-mail deseja. utilize "," ou o spacebar para separar-los.</p>


        <?php }else{?>
            
            <div class="titulo">
                <h2 style="text-decoration: underline;margin-top: 38px;">Vamos Nessa!</h2>
                <p>Não perca de vista as dicas e pessoas mais divertidas da cidade! 
                    Conheça novos lugares e construa novas amizades com pessoas 
                    querem a mesma coisa: se divertir!</p>
                
                  <div class="cadastro">
                        <?php echo form_open_multipart('usuario/create', array('name'=>'form1'));  ?>
                            <p><input name="username" type="text" id="limpa" maxlength="128" size="30" onfocus="limparPadrao(this);" onblur="escreverPadrao(this);"  value="username" /></p>
                            <p><input name="email" type="text" maxlength="200" size="30" onfocus="limparPadrao(this);" onblur="escreverPadrao(this);" value="email" /></p>
                            <p><input name="senha" type="text" maxlength="10" size="30" onfocus="limparPadrao(this);" onblur="escreverPadrao(this);" value="password" /></p>
                            <p><input name="senhaconf" type="text" maxlength="10" onfocus="limparPadrao(this);" onblur="escreverPadrao(this);" size="30" value="RepitaSenha"/></p>
                            <input type="submit" name="Salvar" value="Fazer Parte!" class="submit" style="float: right;margin-right: -40px;}" />
                        <?php echo form_close();?>
                    </div>        
            </div>
            <div class="clear"></div>
            
            <br/>
            <hr/>
            <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> Dica que talvez voce ache interesante</p>

            <div class="dicas">
                <?php echo img(array('src' => 'upload/thumbs/' . $usuario->avatar, 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '30', 'height' => '30'));?>
                <h5>Aline - ha 2 horas</h5>
                <p class="txt">Vai rolar lual hoje no Gold Mar com promocao de cerveja, <a href="#">[+]</a></p>
            </div>

             <div class="dicas">
                <?php echo img(array('src' => 'upload/thumbs/' . $usuario->avatar, 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '30', 'height' => '30'));?>
                <h5>Stanlei - ha alguns estantes</h5>
                <p class="txt">Hoje tem happy hour de Bohemia na cervejaria oficial, com <a href="#">[+]</a></p>
            </div>

             <div class="dicas">
                <?php echo img(array('src' => 'upload/thumbs/' . $usuario->avatar, 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '30', 'height' => '30'));?>
                <h5>Capetinha do amor - ha 1 hora</h5>
                <p class="txt">Hoje vou fazer uma festinha em casa quem quer vim?</p>
            </div>

            <hr/>
            
        <?php } ?>
</div>
